//
//  InfoOverviewView.h
//  cocoapodText
//
//  Created by apple on 16/9/7.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef InfoOverviewView_h
#define InfoOverviewView_h


#endif /* InfoOverviewView_h */
#import "MJRefresh.h"
//导入时需要手动打上，系统没有提示
#import "Charts-Swift.h"
#import "CommonTool.h"
#import <UIKit/UIKit.h>
#import "OverViewMapMenu.h"
#import "OverviewCardView.h"
#import "FSSwitchMenuCommon.h"
#import "EnergySavingCardView.h"
#import "MyLabelImageAnnotationView.h"
#import "YearOnYearAndLinkRelativeView.h"
#import <BaiduMapAPI_Base/BMKBaseComponent.h>//引入base相关所有的头文件
#import <BaiduMapAPI_Map/BMKMapComponent.h>//引入地图功能所有的头文件
#import <BaiduMapAPI_Search/BMKSearchComponent.h>//引入检索功能所有的头文件

@class InfoOverviewView;

//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol GYInfoOverviewViewDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onSetData:(InfoOverviewView *)infoOverviewView;
-(void)onSwitchMenuByTabItem:(InfoOverviewView *)infoOverviewView MenuId:(int)menuId destinationTab:(int)end;
-(void)onSwitchMapORG:(InfoOverviewView *)infoOverviewView orgId:(NSString *)orgId orgName:(NSString *)orgName;
@end

@interface InfoOverviewView : UIView<ChartViewDelegate,UIScrollViewDelegate>
@property(nonatomic,strong)UIScrollView *AllBackScrollView;
@property(nonatomic,strong)BMKMapView* mapView;
@property(nonatomic,strong)BMKGeoCodeSearch *searcher;
//概览
@property(nonatomic,strong)OverviewCardView *overviewCardView1;
@property(nonatomic,strong)OverviewCardView *overviewCardView2;
@property(nonatomic,strong)OverviewCardView *overviewCardView3;
@property(nonatomic,strong)OverviewCardView *overviewCardView4;
@property(nonatomic,strong)OverviewCardView *overviewCardView5;
@property(nonatomic,strong)OverviewCardView *overviewCardView6;

@property(nonatomic,strong)EnergySavingCardView *energySavingCardView1;
@property(nonatomic,strong)EnergySavingCardView *energySavingCardView2;
@property(nonatomic,strong)EnergySavingCardView *energySavingCardView3;
@property(nonatomic,strong)EnergySavingCardView *energySavingCardView4;

@property(nonatomic,strong)YearOnYearAndLinkRelativeView *yearOnYearAndLinkRelativeView1;
@property(nonatomic,strong)YearOnYearAndLinkRelativeView *yearOnYearAndLinkRelativeView2;
@property(nonatomic,strong)YearOnYearAndLinkRelativeView *yearOnYearAndLinkRelativeView3;

@property(nonatomic,strong)FSSwitchMenuCommon *ModuleMenu1;
@property(nonatomic,strong)FSSwitchMenuCommon *ModuleMenu2;
@property(nonatomic,strong)FSSwitchMenuCommon *ModuleMenu3;

@property(nonatomic,strong)OverViewMapMenu *mapMenu;
@property(nonatomic,strong)UIView *maskView;
@property(nonatomic,strong)UISwitch *changeHuaDongObj;
@property(nonatomic,retain)NSMutableArray *coorArray;

@property(nonatomic,strong)UIView *ShareAnalysisWithEnergyPie;
@property(nonatomic,strong)PieChartView *EnergySharePieChart;

//柱状图
@property(nonatomic,strong)BarChartView *CompletionRateBarChart;
#pragma mark 柱状图数据
@property(nonatomic,retain)NSMutableArray *xValsRate;
@property(nonatomic,retain)NSMutableArray *yValsRate;
@property(nonatomic,retain)NSMutableArray *barColors;

#pragma mark - 数据
#pragma mark 预警比列饼图数据
@property(nonatomic,retain)NSMutableArray *yValsTrueWarnPie;
@property(nonatomic,retain)NSMutableArray *xValsWarnPie;
@property(nonatomic,retain)NSMutableArray *yValsWarnPie;
@property(nonatomic,retain)NSMutableArray *pieColors;


#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<GYInfoOverviewViewDelegate> delegate;

#pragma mark - 公共方法
-(void)setData;
-(void)pieChartData;
-(void)multipleBarChartDataWithFlag:(NSString *)flag;
-(void)refreshMapData:(NSMutableArray *)array Info:(NSDictionary *)data;
-(void)refreshOrgNoMapData:(NSDictionary *)data;
-(void)clickImage:(UITapGestureRecognizer *)Recognizer;
-(void)refresh;

@end
